package com.kuizii.demo.web.interceptor;


import com.kuizii.demo.api.SysUserService;
import com.kuizii.demo.domain.SysUserDto;
//import com.kuizii.demo.web.util.ShiroUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Component;
import org.springframework.web.method.HandlerMethod;
import org.springframework.web.servlet.HandlerInterceptor;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 全局拦截器
 *
 * @author jameszhou
 */
@Component
public class GlobalInterceptor implements HandlerInterceptor {


    @Autowired
    Environment environment;

    @Autowired
    SysUserService userService;

    @Override
    public boolean preHandle(HttpServletRequest request,
                             HttpServletResponse response, Object handler) throws Exception {


        /**
         * 通过拦截
         */
        return true;
    }

}
